/*
 * @Author: wuqingchun
 * @Date: 2024-10-29 19:58:49
 * @Description: 
 * @LastEditors: wuqingchun
 * @LastEditTime: 2024-10-30 11:23:52
 */
#ifndef __NET_CONNECTION_PASSIVE_H__
#define __NET_CONNECTION_PASSIVE_H__

#include "libnet.h"
#include "net_event_handler.h"
#include "net_connection_base.h"


// 被动连接类
class CNetConnectionPassive : public CNetConnectionBase
{
public:
    CNetConnectionPassive(INetEventHandler& refEventHandler, INetTCPConnectionCallback& refCallback, const sockaddr_in& refAddr, int iListenerFd);
    ~CNetConnectionPassive();

    int32_t Init();
    void Exit();

private:
    int m_iListenerFd = -1;
};

#endif //__NET_CONNECTION_PASSIVE_H__